import {useMap} from "ahooks"
import './App.css';

function App() {
  const [
    map,
    {
      set, 
      setAll, 
      remove, 
      reset, 
      get
    }
  ] = useMap([]);

  console.log("map",map)
  return (
    <div className="App">
      <button onClick={()=>{set("3",3)}}>set</button>
      <button onClick={()=>{setAll(new Map())}}>setAll</button>
      <button onClick={()=>{remove("3")}}>remove</button>
      <button onClick={()=>{reset()}}>reset</button>
      <button onClick={()=>{console.log(get("3"))}}>get</button>
    </div>
  );
}

export default App;
